<extend name="layout/edit" />

<block name="HEADER">

</block>

<block name="CONTENT">
    <control:form id="form" />
</block>

<block name="FOOTER">
    <script type="text/javascript">
        var page = (function (ns) {

            ns.init = function () {

            }

            //保存
            ns.save = function () {
                form.save(1).then(function (res) {
                    form.opener.grid.load();
                    // form.opener调用父级方法
                });
            }
            return ns;
        }({}));

        $(function () { page.init(); });
    </script>
</block>